package com.leenmvc.core.web.controller;

import com.leenmvc.core.annotation.Note;
import com.leenmvc.core.base.BaseController;
import com.leenmvc.core.security.entity.core.SysVue;
import com.leenmvc.core.security.entity.core.TitleAndi18n;
import com.leenmvc.core.security.service.core.SysVueService;
import com.leenmvc.core.base.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: JohnCoding
 * @Description: 配合前端代码机实现
 * @date: 2020/3/16 11:30
 */
@RestController
@RequestMapping("system/sysVue")
public class SysVueController extends BaseController<SysVue> {

    @Autowired
    SysVueService sysVueService;

    @GetMapping("getI18n")
    @Note("获取i8nTilte和i18n集合")
    public Result getI18n(){
        TitleAndi18n i18n = sysVueService.getI18n();
        return new Result().ok(i18n);
    }


}